Weighted Pullups Are Optimal